package com.lwt.db137.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwt.db137.bean.Menu;
import com.lwt.db137.mapper.MenuMapper;
import com.lwt.db137.service.MenuService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description  
 * @version 1.0 
 * @author lwt
 * @date 2024/12/24 11:48
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;


    @Override
    public int deleteById(int id) {
        return menuMapper.deleteById(id);
    }

    @Override
    public int insert(Menu menu) {
        return menuMapper.insert(menu);
    }

    @Override
    public int updateMenuById(Menu menu) {
        return menuMapper.updateById(menu);
    }

    @Override
    public List<Menu> menuList(String label) {
        return menuMapper.menuList(label);
    }
}
